#列表解析
print("\n#---------列表解析--------#")
squares = [value**2 for value in range(1,11)]
print(squares)

print("\n#---------切片--------#")
players = ['charles','martina','michael','florence','eli']
print(players[0:3])

print("\n#---------遍历切片--------#")
print("Here are the first three players on my team:")
for player in players[:3]:
	print(player.title())

print("\n#---------复制列表--------#")
my_foods = ['pizza ','falafel','carrot cake']
friend_foods = my_foods[:]

print("My favorite foods are:")
print(my_foods)

print("\nMy friend's favorite foods are :")
print(friend_foods)
